<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Changes the transparency value of a color</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="imagick.mapimage.html">« Imagick::mapImage</a></li>
      <li style="float: right;"><a href="imagick.medianfilterimage.html">Imagick::medianFilterImage »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.imagick.html">Imagick</a></li>
    <li>Changes the transparency value of a color</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="imagick.mattefloodfillimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::matteFloodfillImage</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::matteFloodfillImage</span> &mdash; <span class="dc-title">Changes the transparency value of a color</span></p>

 </div>

 <div id="imagick.mattefloodfillimage-refsynopsisdiv">
   <div class="warning"><strong class="warning">警告</strong><p class="simpara">此函数在 Imagick 3.4.4 中被 <em class="emphasis">废弃</em>，强烈建议不要应用此函数。</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-imagick.mattefloodfillimage-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Imagick::matteFloodfillImage</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">float</span> <code class="parameter">$alpha</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">float</span> <code class="parameter">$fuzz</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> <code class="parameter">$bordercolor</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">int</span> <code class="parameter">$x</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">int</span> <code class="parameter">$y</code></span><br>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Changes the transparency value of any pixel that matches
   target and is an immediate neighbor.  If the method
   <strong><code>FillToBorderMethod</code></strong> is specified, the transparency value
   is changed for any neighbor pixel that does not match
   the bordercolor member of image.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.mattefloodfillimage-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">alpha</code></dt>

     <dd>

      <p class="para">
       The level of transparency: 1.0 is fully opaque and 0.0 is fully
       transparent.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">fuzz</code></dt>

     <dd>

      <p class="para">
       The fuzz member of image defines how much tolerance is acceptable to
       consider two colors as the same.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">bordercolor</code></dt>

     <dd>

      <p class="para">
      An <span class="classname"><a href="class.imagickpixel.html" class="classname">ImagickPixel</a></span> object or string representing the border color.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">x</code></dt>

     <dd>

      <p class="para">
      The starting x coordinate of the operation.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">y</code></dt>

     <dd>

      <p class="para">
      The starting y coordinate of the operation.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagick.mattefloodfillimage-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>true</code></strong>。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-imagick.mattefloodfillimage-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   错误时抛出 ImagickException。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-imagick.mattefloodfillimage-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>PECL imagick 2.1.0</td>
       <td>
        Now allows a string representing the color as the third parameter.
        Previous versions allow only an <span class="classname"><a href="class.imagickpixel.html" class="classname">ImagickPixel</a></span> object.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


</div></div></div></body></html>